HIVE-27317: Temporary (local) session files cleanup improvements#4293
Conversation
|
@kgyrtkirk there is only one failed test which imho is not related with the patch, please see below; The test is |
|
@kgyrtkirk thank you for relaunching. This time all the tests are passed; But |
32e4cac to
326865f
Compare
badba5e to
2292c85
Compare
2292c85 to
171839d
Compare
171839d to
9d17812
Compare
veghlaci05
left a comment
There was a problem hiding this comment.
Requested some test changes, the production code looks fine for me.
9d17812 to
853df08
Compare
853df08 to
00c63e9
Compare
|
@veghlaci05 thank you so much for all the suggestions and corrections. |
|
Kudos, SonarCloud Quality Gate passed! |
|
@sercanCyberVision congrats on your first Apache Hive contribution! |
|
@veghlaci05 please revert !!! builds are taking 6hr now http://ci.hive.apache.org/job/hive-precommit/job/PR-4293/9/ |
|
Hi @deniskuzZ All other previous and recent builds took around 8.5 hours. Even in one case it is 15 hours; http://ci.hive.apache.org/job/hive-precommit/job/PR-4383/2/ |
master is broken and some of the jobs are failing with: |
|
@deniskuzZ can you help fixing this? I think we can clean the scratch dir which is created for the unit test in this PR after test is completed; So, the failed tests will create their own scratchdir instead of dealing with the existing one; Asking your help because I am not able to reproduce the issue. |
Looks like there was an issue with the agents, so job was running 2x longer. |
|
@deniskuzZ The unit test itself is okay anyway, it passed; But I am not sure how to proceed now :) |








What changes were proposed in this pull request?
When
ClearDanglingScratchDirservice identifies the dangling sessions to clean HDFS, we will be cleaning files/dirs inHiveConf.ConfVars.LOCALSCRATCHDIR(local FS) as well.Why are the changes needed?
When Hive session is killed, no chance for shutdown hook to clean-up tmp files. This causes accumulation of tmp files/dirs in local FS as below;
Does this PR introduce any user-facing change?
No. The same service will have additional functionality.
How was this patch tested?
Unit test.